package com.xquant.marketdata.marketdata.service.impl;

import com.xquant.common.redis.service.RedisService;
import com.xquant.marketdata.marketdata.domain.FutureInfoDTO;
import com.xquant.marketdata.marketdata.domain.FuturePriceDTO;
import com.xquant.marketdata.marketdata.mapper.EquityFutureMapper;
import com.xquant.marketdata.marketdata.service.EquityFutureService;
import com.xquant.system.api.SysConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author: zip.li
 * @date: Created in 2022/3/10 11:15
 * @Description:
 */
@Service
public class EquityFutureServiceImpl implements EquityFutureService {

    @Autowired
    private EquityFutureMapper equityFutureMapper;
    @Autowired
    private SysConfigService sysConfigService;
    @Override
    public List<FutureInfoDTO> selectFutureList(Map<String, Object> params) {
        return equityFutureMapper.queryFutureInfoByPage(params);
    }

    @Override
    public List<FuturePriceDTO> selectFutureQuotaList(Map<String, Object> params) {
        return equityFutureMapper.queryFutureQuotaByPage(params);
    }

    @Override
    public void updateStockFuturePrice(FuturePriceDTO futurePriceDTO) {
        equityFutureMapper.updateStockFuturePrice(futurePriceDTO);
    }
}
